
CXX = g++
FLAGS = -O3 -Wall

OBJFILES = mainGlut.o ../glslKernel.o ../GLee.o
OBJFILES_SERIAL = mainConsole.o ../glslKernel.o ../GLee.o
OBJFILES_COMPARISON = mainComparisonRot.o 
###################################################################
all: mlsGlut
# all: mlsConsole mlsGlut mlsComparisonRot
mlsComparisonRot: $(OBJFILES_COMPARISON)
	@echo "Linking ...."
	$(CXX) -o $@ $^ -llapack

mlsConsole: $(OBJFILES_SERIAL)
	@echo "Linking ...."
	$(CXX) -o $@ $^ -lGL -lGLU -lglut -pthread

mlsGlut: $(OBJFILES)
	@echo "Linking ...."
	$(CXX) -o $@ $^ -lGL -lGLU -lglut -pthread

.cpp.o: $*.h
	@echo "Compiling C++ code ...."
	$(CXX) -c $(FLAGS) $*.cpp

clean:
	rm *.o

mainGlut.o: mlsDeformerFS.h mlsRaw.h mlsComparison.h 
mainConsole.o: mlsDeformerFS.h 
